﻿using Blazor.CoffeeTalesApi.Entity;
using Blazor.Model.Dto;
using Newtonsoft.Json;

namespace Blazor.CoffeeTalesApi.Dto;

public class ChannelInfo
{
    [JsonProperty("name")]
    public Channel Name { get; set; }

    [JsonProperty("latest_native_version")]
    public uint LatestNativeVersion { get; set; }

    [JsonProperty("min_native_version")]
    public uint MinNativeVersion { get; set; }
    
    [JsonProperty("jump_url")]
    public string JumpUrl { get; set; } = string.Empty;

    [JsonProperty("hot_update_settings")]
    public Dictionary<uint, HotUpdateInfo> HotUpdateSettings { get; set; } =  new();
}